package com.gxa.admin.controller;

import com.gxa.common.vo.JsonResult;
import com.gxa.modules.pojo.Bank_Account;
import com.gxa.modules.service.BankAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/bankAccount")
public class BankAccountController {
    @Autowired
    private BankAccountService bankAccountService;
    @GetMapping("/queryBankAccount")
    @ResponseBody
    public JsonResult queryBankAccount(Integer page ,Integer limit){
        return bankAccountService.queryBankAccount(page,limit);
    }
    @PostMapping("/updataBankAccount")
    @ResponseBody
    public JsonResult updataBankAccount( @RequestBody Bank_Account bank_account){
        return bankAccountService.updataBankAccount(bank_account);
    }

    @PostMapping("/addBankAccount")
    @ResponseBody
    public JsonResult addBankAccount( @RequestBody Bank_Account bank_account){
        return bankAccountService.addBankAccount(bank_account);
    }

    @PostMapping("/delBankAccount")
    @ResponseBody
    public JsonResult delBankAccount( @RequestBody Bank_Account bank_account){
        return bankAccountService.delBankAccount(bank_account);
    }

}
